<?php
/**
 * CloudProductConst.php class file.
 * @author wudg <544038230@qq.com>
 * @date 2020/10/27- 2:20 下午
 */

namespace common\constants;


class CloudProductConst
{

    /**
     * 添加中
     */
    const STATUS_ING = 1;

    /**
     * 添加成功
     */
    const STATUS_YES = 2;

    /**
     * 添加失败
     */
    const STATUS_FAILD = 3;


    /**
     * 未复制
     */
    const COPY_NO = 1;


    /**
     * 已复制
     */
    const COPY_YES = 2;



    public static function transStatusName($status)
    {
        $statusName = '';
        switch ($status)
        {
            case self::STATUS_ING:
                $statusName = '添加中';
                break;
            case self::STATUS_YES:
                $statusName = '添加成功';
                break;
            case self::STATUS_FAILD:
                $statusName = '添加失败';
                break;

        }
        return $statusName;
    }


    public static function transCopyName($copy)
    {
        $copyName = '';
        switch ($copy)
        {
            case self::COPY_NO:
                $copyName = '未复制';
                break;
            case self::COPY_YES:
                $copyName = '已复制';

        }
        return $copyName;
    }
}